<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}
<div class="subnav" style="margin-bottom:20px;">
    <a href="">首页</a> &gt; <a href="">交易管理</a> &gt; <a href="">投注记录</a>
</div>
<div class="main-inner">
    <div class="x-body">
    	<form name="searchform" class="layui-form" action="?" method="get" >
            <input type="hidden" name="m" value="{$m}">
            <input type="hidden" name="c" value="{$c}">
            <input type="hidden" name="a" value="{$a}">
            <div class="tablefilter">
            	<em>状态</em>
                <div class="left margin-l10">
                    <select name="upuid">
    					<option value="all">全部</option>
    					<option value="0">未开奖</option>
    					<option value="1">未中奖</option>
    					<option value="2">已中奖</option>
    				</select>
                </div>
                <em>彩种</em>
                <div class="left margin-l10">
                    <select name="cz">
                        <option value="0">全部</option>
                        {loop $lottery as $k=>$v}
                            <option value="{$k}">{$v['title']}</option>
                        {/loop}
                    </select>
                </div>
                <div class="tableFilterInput">
                    <em>会员账号</em><input type="text" name="username">
                </div>
                <div class="tableFilterInput">
                    <em>开始时间</em><input type="text" class="datetimepicker8" name="begintime">
                </div>
                <div class="tableFilterInput">
                    <em>结束时间</em><input type="text" class="datetimepicker8" name="endtime">
                </div>
                <div class="tableButton">
                    <input type="submit" name="search" class="layui-btn" value="查询">
                </div>
            </div>
    	</form>
    </div>
    	
	<table class="layui-table">
		<thead>
			<tr>
				<th>账号</th>
				<th>彩种</th>
				<th>投注内容</th>
				<th>投注金额</th>
				<th>状态</th>
				<th>类型</th>
				<th>终端</th>
				<th>时间</th>
                <th>操作</th>
			</tr>
		</thead>
		<tbody id="datalist">
            {loop $orderList as $k=>$v}
    			<tr>
    				<td>{$v['username']}</td>
    				<td>{$v['title']}</td>
    				<td>{$v['code']}</td>
    				<td>{$v['amount']}</td>
                    <td>{$v['status']}</td>
                    <td>{$v['is_chase']}</td>
    				<td>{$v['platform']}</td>
    				<td>{date("Y-m-d H:i:s",$v['createtime'])}</td>
                    <td><a href="?m=user&c=order&a=list&id={$v['id']}">查看详情</a></td>
    			</tr>
            {/loop}
		</tbody>
	</table>
	<div class="layui-clear">
		<div id="pages" class="layui-laypage right">{$multi}</div>		
	</div>
</div>
<script type="text/javascript" src="static/js/datetime.js"></script>
{template index/footer}